package com.ibm.android.camera;

import android.content.Context;
import android.graphics.Point;
import android.view.Display;
import android.view.WindowManager;

public class CameraConfigurationManager {
	private Context mContext;
	private Point mScreenResolution;

	// private Point mCameraResolution;

	public CameraConfigurationManager(Context context, ICamera camera) {
		mContext = context;
		init();
	}

	public Point getScreenResolution() {
		return mScreenResolution;
	}

	private void init() {
		// Camera.Parameters parameters = camera.getParameters();
		// previewFormat = parameters.getPreviewFormat();
		// previewFormatString = parameters.get("preview-format");

		WindowManager manager = (WindowManager) mContext
				.getSystemService(Context.WINDOW_SERVICE);
		Display display = manager.getDefaultDisplay();
		mScreenResolution = new Point(display.getWidth(), display.getHeight());
	}
}
